import Layout from '@/layout/index'
const PureRouterView = {
  render(h) {
    return h('router-view')
  }
}
export default [
  {
    path: '/salesService',
    name: 'salesService',
    component: Layout,
    meta: { title: '销售服务', icon: 'menu-callCenter', menuId: 3, showIndex: 3 },
    children: [
      {
        path: 'phoneOrder',
        name: 'phoneOrder',
        component: () => import('@/views/customerCenter/phoneOrder/index.vue'),
        meta: { title: '话务下单', menuId: 301, showIndex: 1 }
      },
      {
        path: 'storeOrder',
        name: 'storeOrder',
        component: () => import('@/views/customerCenter/storeOrder/index.vue'),
        meta: { title: '门店下单', menuId: 302, showIndex: 2 }
      },
      {
        path: 'wholeSales',
        name: 'wholeSales',
        component: () => import('@/views/orderCenter/wholeSales/index'),
        meta: { title: '批发销售', menuId: 303, showIndex: 3 }
      },
      {
        path: 'recoveryManage',
        name: 'recoveryManage',
        component: () => import('@/views/orderCenter/cylinderRecoveryManage/index'),
        meta: { title: '回收单', menuId: 308, showIndex: 4 }
      },
      {
        path: 'fillingOrder',
        name: 'fillingOrder',
        component: () => import('@/views/cylinderManage/fillingOrder/index'),
        meta: { title: '提瓶充装单', menuId: 305, showIndex: 5 }
      },
      {
        path: 'customerAfterSale',
        name: 'customerAfterSale',
        component: PureRouterView,
        meta: { title: '客户售后', menuId: 306, showIndex: 6 },
        children: [
          {
            path: 'refundsManage',
            name: 'refundsManage',
            component: () => import('@/views/orderCenter/refundsManage/index'),
            meta: { title: '退货单', menuId: 30601, showIndex: 1, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          },
          {
            path: 'swapOrderManage',
            name: 'swapOrderManage',
            component: () => import('@/views/orderCenter/swapOrderManage/index'),
            meta: { title: '换货单', menuId: 30606, showIndex: 2, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          },
          {
            path: 'returnBottle',
            name: 'returnBottle',
            component: () => import('@/views/workOrderCenter/returnManage/index'),
            meta: { title: '预约退瓶单', menuId: 30602, showIndex: 3, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          },
          {
            path: 'repairOrder',
            name: 'repairOrder',
            component: () => import('@/views/workOrderCenter/repairOrder/index'),
            meta: { title: '报修单处理', menuId: 30603, showIndex: 4, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          },
          {
            path: 'complaintManage',
            name: 'complaintManage',
            component: () => import('@/views/workOrderCenter/complaintManage/index'),
            meta: { title: '投诉查询', menuId: 30604, showIndex: 5, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          },
          {
            path: 'evaluateManage',
            name: 'evaluateManage',
            component: () => import('@/views/customerCenter/evaluateManage/index'),
            meta: { title: '评价查询', menuId: 30605, showIndex: 6, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          }
          // {
          //   path: 'evaluateManage',
          //   name: 'evaluateManage',
          //   component: () => import('@/views/customerCenter/evaluateManage/index'),
          //   meta: { title: '隐私通话查询', menuId: 30605, showIndex: 5, activeMenu: '/salesService/customerAfterSale/refundsManage' }
          // }
        ]
      },
      {
        path: 'oneHouseOneCodeAppeal',
        name: 'oneHouseOneCodeAppeal',
        component: () => import('@/views/customerCenter/oneHouseOneCodeAppeal/index'),
        meta: { title: '一户一码申诉', menuId: 307, showIndex: 7 }
      }
    ]
  }
]
